/**
 * Created with IntelliJ IDEA.
 * User: Катерина
 * Date: 25.06.13
 * Time: 1:59
 * To change this template use File | Settings | File Templates.
 */
public class MotionInformation {
    private Direction direction;
    private int step;

    public MotionInformation(Direction direction, int step) {
        this.direction = direction;
        if (step > 0) {
            this.step = step;
        }
    }
    public String toString(){
        return String.format("Move %s on %d steps",direction.toString(),step);
    }
    public boolean equal(MotionInformation obj){
        return this.toString().equals(obj.toString());//TODO do in rigth way
    }
    public int getStep() {
        return step;
    }

    public Direction getDirection() {
        return direction;
    }
}
